<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:80:"D:\wwwroot\fangcms_city_add\public/../application/mobile\view\xiaoqu\detail.html";i:1491622854;s:80:"D:\wwwroot\fangcms_city_add\public/../application/mobile\view\public\layout.html";i:1493803137;s:77:"D:\wwwroot\fangcms_city_add\public/../application/mobile\view\xiaoqu\nav.html";i:1493626103;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title><?php echo $seo['title']; ?></title>
    <meta name="Keywords" content="<?php echo $seo['keys']; ?>">
    <meta name="Description" content="<?php echo $seo['desc']; ?>">
    <link rel="stylesheet" href="__CSS__/amazeui.min.css"/>
    <link type="text/css" rel="stylesheet"  href="__CSS__/main.css"/>
    <link rel="stylesheet" href="__CSS__/mobile.css">
    <script src="__PUBLIC__/js/jquery.min.js"></script>
    <script>
        var page = 1,flag  = true,params =  {page: page};
    </script>
</head>
<body>

<header data-am-widget="header" class="am-header am-header-default">
    <div class="am-header-left am-header-nav">
        <a href="javascript:history.back();" class="">
            <i class="am-header-icon am-icon-chevron-left"></i>
        </a>
    </div>
    <h1 class="am-header-title">
        <?php if(isset($info)): ?><?php echo $info['title']; else: ?><?php echo $title; endif; ?>
    </h1>
    <div class="am-header-right am-header-nav">
        <a href="<?php echo url('Index/index'); ?>" class="">
            <i class="am-header-icon am-icon-home"></i>
        </a>
    </div>
</header>


<div class="estate_show_img"><?php echo $topads; ?></div>
<div class="div_box02">
    <div class="h_s_n1 overflow_h">
        <span class="h_s_n1_img"><a href="<?php echo url('Xiaoqu/pic',['id'=>$info['id']]); ?>">
            <img src="<?php echo $info['img']; ?>"></a></span>
        <dl>
            <dt><?php echo $info['title']; ?></dt>
            <dd class="ico02">建筑年代:<?php echo $info['niandai']; ?></dd>
            <dd class="ico03"><?php echo $info['address']; ?></dd>
        </dl>
    </div>
</div>

<div class="div_box03">
    <div class="tab_title01 overflow_h">
        <ul>
            <li><a <?php if($action=='detail'): ?> class="selected" <?php endif; ?> href="<?php echo url('Xiaoqu/detail',['id'=>$info['id']]); ?>">小区概况</a></li>
            <li><a <?php if($action=='used'): ?> class="selected" <?php endif; ?>  href="<?php echo url('Xiaoqu/used',['id'=>$info['id']]); ?>">二手房(<?php echo $info['second_num']; ?>)</a></li>
            <li><a <?php if($action=='rental'): ?> class="selected" <?php endif; ?>  href="<?php echo url('Xiaoqu/rental',['id'=>$info['id']]); ?>">出租房(<?php echo $info['chuzu_num']; ?>)</a></li>
            <li><a <?php if($action=='pic'): ?> class="selected" <?php endif; ?> href="<?php echo url('Xiaoqu/pic',['id'=>$info['id']]); ?>">小区图片</a></li>
        </ul>
    </div>
</div>
<div class="div_box">
    <h1 class="h1_title"><span class="h1_title_t">参数详情</span></h1>
    <div class="pageData">
        <ul>
            <li><em>小区名称：</em><span><?php echo $info['title']; ?></span></li>
            <li><em>二手房源：</em><span><a href="<?php echo url('Xiaoqu/used',['id'=>$info['id']]); ?>"><?php echo $info['second_num']; ?></a>套</span></li>
            <li><em>停车位：</em><span><?php echo $info['attr']['chewei']; ?></span></li>
            <li><em>绿化率：</em><span><?php echo $info['attr']['lhl']; ?></span></li>
            <li><em>楼盘类型：</em><span><?php echo $info['attr']['wylx']; ?></span></li>
            <li><em>建筑年代：</em><span><?php echo $info['niandai']; ?></span></li>
            <li><em>总户数：</em><span><?php echo $info['attr']['hushu']; ?></span></li>
            <li><em>容积率：</em><span><?php echo $info['attr']['rjl']; ?></span></li>
            <li><em>小区地址：</em><span><?php echo $info['address']; ?></span></li>
            <li><em>装修状况：</em><span><?php echo $info['attr']['zxqk']; ?></span></li>
            <li><em>物业费：</em><span><?php echo $info['attr']['wuyefee']; ?></span></li>
            <li><em>物业公司：</em><span><?php echo !empty($info['attr']['wygs'])?$info['attr']['wygs'] : '暂无信息'; ?></span></li>
        </ul>
    </div>
</div>

<div class="div_box">
        <h1 class="h1_title"><span class="h1_title_t">小区介绍</span></h1>
        <div style="padding: 10px 0px;"><?php echo $info['info']; ?></div>
</div>

<footer data-am-widget="footer" class="am-footer am-footer-default" data-am-footer="{  }">
    <div class="am-footer-switch"><?php $n=0; if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['pos'] == 2): $n++; if(!(empty($vo['alias']) || (($vo['alias'] instanceof \think\Collection || $vo['alias'] instanceof \think\Paginator ) && $vo['alias']->isEmpty()))): $url=url($vo['model'].'/detail',['cate'=>$vo['alias']]); else: $url=url($vo['model'].'/index'); endif; if($n > 1): ?><span class="am-footer-divider"> | </span><?php endif; ?><a class="am-footer-desktop" href="<?php echo $url; ?>"><?php echo $vo['title']; ?></a>
        <?php endif; endforeach; endif; else: echo "" ;endif; ?>

    </div>
    <div class="am-footer-miscs ">

        <p>&copy;<?php echo date('Y'); ?>版权所有 <?php echo $site['title']; ?></p>
        <p>客服电话：<?php echo $site['telphone']; ?></p>
    </div>
    <div class="fang-footer-bar">
        <ul class="am-avg-sm-4">
            <li><a href="<?php echo url('Index/index'); ?>" <?php if($controller == "index"): ?>class="on"<?php endif; ?>><i class="am-icon-home am-icon-sm"></i><p>首页</p></a></li>
            <li><a href="<?php echo url('Loupan/index'); ?>" <?php if($controller == "loupan"): ?>class="on"<?php endif; ?>><i class="am-icon-building am-icon-sm"></i><p>新房</p></a></li>
            <li><a href="<?php echo url('Second/index'); ?>" <?php if($controller == "second"): ?>class="on"<?php endif; ?>><i class="am-icon-institution am-icon-sm"></i><p>二手</p></a></li>
            <li><a href="<?php echo url('user.index/index'); ?>"><i class="am-icon-user am-icon-sm"></i><p>我的</p></a></li>
        </ul>
    </div>
</footer>
<?php echo $site['mobileJs']; if(isset($ajaxdata)): ?>
<div id="loadingToast" class="am-hide">
    <div class="ylj-mask"></div>
    <div class="ylj-toast">
        <i class="ylj-loading weui-icon_toast"></i>
        <p class="ylj-toast__content">数据加载中</p>
    </div>
</div>
<script src="__PUBLIC__/js/layer/laytpl.js"></script>
<script>
    $(function(){
        $(window).scroll(function(){
            if(($(window).scrollTop() + $(window).height() > $(document).height()-10) && flag){
                var totalpage = $("#lists").data('total');
                if(totalpage > 1 && totalpage >= page){
                    $("#loadingToast").removeClass('am-hide');
                    getData();
                }else{
                    $("#loading-alt").removeClass('am-hide');
                    flag = false;
                }
            }
        });
    });
    function getData(){
        var url =  $("#lists").data('uri');
        $.get(url,params,function(data){
            $("#loadingToast").addClass('am-hide');
            if(data.status == 1){
                if(data.data){
                    var gettpl = document.getElementById('template').innerHTML;
                    laytpl(gettpl).render(data.data, function(html){
                        $('#lists').append(html);
                    });
                }else{
                    $('#lists').html('<li>暂无数据</li>');
                }

            }else{
                $("#loading-alt").removeClass('am-hide');
                flag = false;
            }
        });
        page++;
    }
</script>
<?php endif; ?>
</body>
</html>